package com.ruoyi.system.service.impl;

import java.util.List;


import com.ruoyi.system.mapper.XianxingtimeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.system.domain.Xianxingtime;
import com.ruoyi.system.service.IXianxingtimeService;
import com.ruoyi.common.support.Convert;

/**
 * 限行时间段 服务层实现
 * 
 * @author chengenjiang
 * @date 2019-07-30
 */
@Service
public class XianxingtimeServiceImpl implements IXianxingtimeService 
{
	@Autowired
	private XianxingtimeMapper xianxingtimeMapper;

	/**
     * 查询限行时间段信息
     * 
     * @param xianXingTimeId 限行时间段ID
     * @return 限行时间段信息
     */
    @Override
	public Xianxingtime selectXianxingtimeById(Integer xianXingTimeId)
	{
	    return xianxingtimeMapper.selectXianxingtimeById(xianXingTimeId);
	}
	
	/**
     * 查询限行时间段列表
     * 
     * @param xianxingtime 限行时间段信息
     * @return 限行时间段集合
     */
	@Override
	public List<Xianxingtime> selectXianxingtimeList(Xianxingtime xianxingtime)
	{
	    return xianxingtimeMapper.selectXianxingtimeList(xianxingtime);
	}
	
    /**
     * 新增限行时间段
     * 
     * @param xianxingtime 限行时间段信息
     * @return 结果
     */
	@Override
	public int insertXianxingtime(Xianxingtime xianxingtime)
	{
	    return xianxingtimeMapper.insertXianxingtime(xianxingtime);
	}
	
	/**
     * 修改限行时间段
     * 
     * @param xianxingtime 限行时间段信息
     * @return 结果
     */
	@Override
	public int updateXianxingtime(Xianxingtime xianxingtime)
	{
	    return xianxingtimeMapper.updateXianxingtime(xianxingtime);
	}

	/**
     * 删除限行时间段对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteXianxingtimeByIds(String ids)
	{
		return xianxingtimeMapper.deleteXianxingtimeByIds(Convert.toStrArray(ids));
	}
	
}
